package xpn.business.fund_return.entity.return_application_form;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import xpn.platform.modules.persistence.AbstractAuditorEntity;
import xpn.platform.modules.sys.org.SysOrg;
import xpn.platform.modules.sys.user.SysUser;

import javax.persistence.*;

/**
 *  资金返还申请表
 */
@Entity
@Table(name = "return_application_form")
@Getter
@Setter
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"}, ignoreUnknown = true)
public class ReturnApplicationForm extends AbstractAuditorEntity {
    private Long caseId;
    private String name;//姓名
    private String sex;// 性别
    private String IDNumber;// 身份证号
    private String currentAddress;// 现住址
    private String telephone;// 联系方式
    private String returnAccount;// 返还账户
    private String victimName;//被害人姓名签名
    @JoinColumn
    @ManyToOne(fetch = FetchType.LAZY)
    private SysOrg caseHandlingUnit;//立案单位
    private String filingNo;//立案编号
    private String accountInvolved;// 涉案账户
    private String defraudedAmount;// 被骗金额
    @JoinColumn
    @ManyToOne(fetch = FetchType.LAZY)
    private SysUser caseHandlerA;// 办案人签名
    @JoinColumn
    @ManyToOne(fetch = FetchType.LAZY)
    private SysUser caseHandlerB;// 办案人签名
    private String handlingOpinions;// 办理意见
    private String handleSignature;// 办理签名
    private String handleYear;// 办理年
    private String handleMonth;// 办理月
    private String handleDay;// 办理日
    @JoinColumn
    @ManyToOne(fetch = FetchType.LAZY)
    private SysOrg frozenUnit;// 冻结单位
    @JoinColumn
    @ManyToOne(fetch = FetchType.LAZY)
    private SysUser frozenCaseHandlerA;// 冻结单位办案人
    @ManyToOne(fetch = FetchType.LAZY)
    private SysUser frozenCaseHandlerB;
    private String blockingBankAccounts;// 冻结银行账户
    private Float frozenAmount;// 冻结金额
    private String freezingFandlingOpinions;// 冻结单位办理意见
    private String freezingFandlingAutograph;// 冻结办理意见签名
    private String frozenYear;
    private String frozenMonth;
    private String frozenDay;
    private String pdfUrl;
}
